package com.yc.hwc.biz;

public class BizException extends Exception {

	private static final long serialVersionUID = 1L;

	private int code;
	private Object data;

	public BizException(String msg, int code, Object data) {
		super(msg);
		this.code = code;
		this.data = data;
	}

	public BizException(String msg, RuntimeException ex) {
		super(msg, ex);
		this.code = -99;
	}

	public int getCode() {
		return code;
	}

	public Object getData() {
		return data;
	}

}
